<?php

class Application_Form_Prise extends Zend_Form
{
    public function init()
    {
        $this->setName('prise');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        $date = new Zend_Form_Element_Text('date');
        $date->setLabel('Date')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty');

        $distributeur = new Zend_Form_Element_Text('distributeur');
        $distributeur->setLabel('Distributeur')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');
			  
		$journale = new Zend_Form_Element_Text('journale');
        $journale->setLabel('Journale')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');

        $envoyer = new Zend_Form_Element_Submit('envoyer');
        $envoyer->setAttrib('id', 'boutonenvoyer');

        $this->addElements(array($id, $date, $distributeur, $journale, $envoyer));
    }
}

